package org.edu.modules.portal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;

@TableName("ve_site_navigation")
@ApiModel(value = "ve_site_navigation对象", description = "导航栏目")
public class VeSiteNavigation implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;
    @Excel(name = "导航名称", width = 15.0D)
    @ApiModelProperty("导航名称")
    private String title;
    @Excel(name = "内容栏目category， 自定义链接link;模板tp", width = 15.0D)
    @ApiModelProperty("内容栏目category， 自定义链接link;模板tp")
    private String type;
    @Excel(name = "链接地址", width = 15.0D)
    @ApiModelProperty("链接地址")
    private String url;
    @Excel(name = "目标ID,如果是栏目对应栏目ID，如果是模板就对应模板名称", width = 15.0D)
    @ApiModelProperty("目标ID,如果是栏目对应栏目ID，如果是模板就对应模板名称")
    private String rowid;

    public org.edu.modules.portal.entity.VeSiteNavigation setId(Integer id) {
        this.id = id;
        return this;
    }

    @Excel(name = "导航栏位置:头部(header) 中部 middle底部footer,默认中部middle", width = 15.0D)
    @ApiModelProperty("导航栏位置:头部(header) 中部 middle底部footer,默认中部middle")
    private String location;
    @Excel(name = "_blank,self,top,xxxxx", width = 15.0D)
    @ApiModelProperty("_blank,self,top,xxxxx")
    private String target;
    @Excel(name = "排序", width = 15.0D)
    @ApiModelProperty("排序")
    private Integer listsort;
    @Excel(name = "站点ID", width = 15.0D)
    @ApiModelProperty("站点ID")
    private Integer siteid;
    @Excel(name = "终端系统ID", width = 15.0D)
    @ApiModelProperty("终端系统ID")
    private Integer terminalid;
    @Excel(name = "导航页面banner图片", width = 15.0D)
    @ApiModelProperty("导航页面banner图片")
    private Integer bannerid;
    @Excel(name = "多租户id", width = 15.0D)
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public org.edu.modules.portal.entity.VeSiteNavigation setTitle(String title) {
        this.title = title;
        return this;
    }

    public org.edu.modules.portal.entity.VeSiteNavigation setType(String type) {
        this.type = type;
        return this;
    }

    public org.edu.modules.portal.entity.VeSiteNavigation setUrl(String url) {
        this.url = url;
        return this;
    }

    public org.edu.modules.portal.entity.VeSiteNavigation setRowid(String rowid) {
        this.rowid = rowid;
        return this;
    }

    public org.edu.modules.portal.entity.VeSiteNavigation setLocation(String location) {
        this.location = location;
        return this;
    }

    public org.edu.modules.portal.entity.VeSiteNavigation setTarget(String target) {
        this.target = target;
        return this;
    }

    public org.edu.modules.portal.entity.VeSiteNavigation setListsort(Integer listsort) {
        this.listsort = listsort;
        return this;
    }

    public org.edu.modules.portal.entity.VeSiteNavigation setSiteid(Integer siteid) {
        this.siteid = siteid;
        return this;
    }

    public org.edu.modules.portal.entity.VeSiteNavigation setTerminalid(Integer terminalid) {
        this.terminalid = terminalid;
        return this;
    }

    public org.edu.modules.portal.entity.VeSiteNavigation setBannerid(Integer bannerid) {
        this.bannerid = bannerid;
        return this;
    }

    public org.edu.modules.portal.entity.VeSiteNavigation setPlaceId(Integer placeId) {
        this.placeId = placeId;
        return this;
    }

    public String toString() {
        return "VeSiteNavigation(id=" + getId() + ", title=" + getTitle() + ", type=" + getType() + ", url=" + getUrl() + ", rowid=" + getRowid() + ", location=" + getLocation() + ", target=" + getTarget() + ", listsort=" + getListsort() + ", siteid=" + getSiteid() + ", terminalid=" + getTerminalid() + ", bannerid=" + getBannerid() + ", placeId=" + getPlaceId() + ")";
    }


    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof org.edu.modules.portal.entity.VeSiteNavigation)) return false;
        org.edu.modules.portal.entity.VeSiteNavigation other = (org.edu.modules.portal.entity.VeSiteNavigation) o;
        if (!other.canEqual(this)) return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id)) return false;
        Object this$listsort = getListsort(), other$listsort = other.getListsort();
        if ((this$listsort == null) ? (other$listsort != null) : !this$listsort.equals(other$listsort)) return false;
        Object this$siteid = getSiteid(), other$siteid = other.getSiteid();
        if ((this$siteid == null) ? (other$siteid != null) : !this$siteid.equals(other$siteid)) return false;
        Object this$terminalid = getTerminalid(), other$terminalid = other.getTerminalid();
        if ((this$terminalid == null) ? (other$terminalid != null) : !this$terminalid.equals(other$terminalid))
            return false;
        Object this$bannerid = getBannerid(), other$bannerid = other.getBannerid();
        if ((this$bannerid == null) ? (other$bannerid != null) : !this$bannerid.equals(other$bannerid)) return false;
        Object this$placeId = getPlaceId(), other$placeId = other.getPlaceId();
        if ((this$placeId == null) ? (other$placeId != null) : !this$placeId.equals(other$placeId)) return false;
        Object this$title = getTitle(), other$title = other.getTitle();
        if ((this$title == null) ? (other$title != null) : !this$title.equals(other$title)) return false;
        Object this$type = getType(), other$type = other.getType();
        if ((this$type == null) ? (other$type != null) : !this$type.equals(other$type)) return false;
        Object this$url = getUrl(), other$url = other.getUrl();
        if ((this$url == null) ? (other$url != null) : !this$url.equals(other$url)) return false;
        Object this$rowid = getRowid(), other$rowid = other.getRowid();
        if ((this$rowid == null) ? (other$rowid != null) : !this$rowid.equals(other$rowid)) return false;
        Object this$location = getLocation(), other$location = other.getLocation();
        if ((this$location == null) ? (other$location != null) : !this$location.equals(other$location)) return false;
        Object this$target = getTarget(), other$target = other.getTarget();
        return !((this$target == null) ? (other$target != null) : !this$target.equals(other$target));
    }

    protected boolean canEqual(Object other) {
        return other instanceof org.edu.modules.portal.entity.VeSiteNavigation;
    }

    public int hashCode() {
        int PRIME = 59;
        Integer result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $listsort = getListsort();
        result = result * 59 + (($listsort == null) ? 43 : $listsort.hashCode());
        Object $siteid = getSiteid();
        result = result * 59 + (($siteid == null) ? 43 : $siteid.hashCode());
        Object $terminalid = getTerminalid();
        result = result * 59 + (($terminalid == null) ? 43 : $terminalid.hashCode());
        Object $bannerid = getBannerid();
        result = result * 59 + (($bannerid == null) ? 43 : $bannerid.hashCode());
        Object $placeId = getPlaceId();
        result = result * 59 + (($placeId == null) ? 43 : $placeId.hashCode());
        Object $title = getTitle();
        result = result * 59 + (($title == null) ? 43 : $title.hashCode());
        Object $type = getType();
        result = result * 59 + (($type == null) ? 43 : $type.hashCode());
        Object $url = getUrl();
        result = result * 59 + (($url == null) ? 43 : $url.hashCode());
        Object $rowid = getRowid();
        result = result * 59 + (($rowid == null) ? 43 : $rowid.hashCode());
        Object $location = getLocation();
        result = result * 59 + (($location == null) ? 43 : $location.hashCode());
        Object $target = getTarget();
        return result * 59 + (($target == null) ? 43 : $target.hashCode());
    }


    public Integer getId() {
        return this.id;
    }

    public String getTitle() {
        return this.title;
    }

    public String getType() {
        return this.type;
    }

    public String getUrl() {
        return this.url;
    }

    public String getRowid() {
        return this.rowid;
    }

    public String getLocation() {
        return this.location;
    }

    public String getTarget() {
        return this.target;
    }

    public Integer getListsort() {
        return this.listsort;
    }

    public Integer getSiteid() {
        return this.siteid;
    }

    public Integer getTerminalid() {
        return this.terminalid;
    }

    public Integer getBannerid() {
        return this.bannerid;
    }

    public Integer getPlaceId() {
        return this.placeId;
    }
}



